package com.dajie.pt.service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.dajie.pt.model.InvitationApply;
import com.dajie.pt.service.base.BaseService;

public interface InvitationApplyService<E, PK extends Serializable> extends BaseService<E, PK>
{
	boolean saveInvitationApply(InvitationApply invitationInfo);

	boolean replaceInvitationApply(InvitationApply invitationInfo);
	
	InvitationApply getInvitationApplyInfoByUEJ(Integer uid,String email,String jid);
	
	int saveInvitationApplyAsPV(InvitationApply invitationInfo);
	
	int saveInvitationApplyAsAccept(InvitationApply invitationInfo);
	
	int saveInvitationApplyAsSubmit(InvitationApply invitationInfo);
	
	int saveInvitationApplyAsIgnore(InvitationApply invitationInfo);
	
	List<InvitationApply> findByPage(Map<String,Object> params);
	
	InvitationApply getByMobile(String mobile);
	
	void saveSubmitResume(InvitationApply entity);
	
	void saveIgnore(InvitationApply entity);
	
	String getIdsByMobile(String mobile);
	
	List<InvitationApply> showlist(Map<String,Object> params);
	
	void saveCode(String mobile,String code);
	
	String getCode(String mobile);
	
}